// SHGame.cpp : main project file.

#include "stdafx.h"
#include "Form1.h"
#include "EventQ.h"
#include "TurnPlay.h"
using namespace SHGame;

[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
	// Start the event Queue thread
	Threading::ThreadStart ^ starter = gcnew Threading::ThreadStart(EventQ::EVENTQ, &EventQ::Run);
	Threading::Thread ^thread = gcnew Threading::Thread(starter);
	thread->Start();
	// set up the players:
	TurnPlay::SetPlayerAt(0, gcnew Player("You"));
	TurnPlay::SetPlayerAt(1, gcnew Player("Player 2"));
	TurnPlay::SetPlayerAt(2, gcnew Player("Player 3"));
	TurnPlay::SetPlayerAt(3, gcnew Player("Player 4"));
	TurnPlay::SetPlayerAt(4, gcnew Player("Player 5"));

	TurnPlay::SetStart(TurnPlay::GetHuman());

	// Enabling Windows XP visual effects before any controls are created
	Application::EnableVisualStyles();
	Application::SetCompatibleTextRenderingDefault(false); 

	// Create the main window and run it
	Application::Run(gcnew Form1());
	return 0;
}
